import { App } from 'vue'
import DynamicFormEditor from './src/editor.vue'
import DynamicFormParser from './src/parser.vue'
import DynamicFormPreview from './src/preview.vue'

DynamicFormEditor.install = (app: App) => {
  app.component(DynamicFormEditor.name, DynamicFormEditor)
}

export default DynamicFormEditor

export * from './src/types'

export const CjuiDynamicFormEditor = DynamicFormEditor
export const CjuiDynamicFormParser = DynamicFormParser
export const CjuiDynamicFormPreview = DynamicFormPreview
